package com.baishui.context.annotation;


import com.baishui.beans.factory.annotation.AnnotatedBeanDefinition;
import com.baishui.beans.factory.support.GenericBeanDefinition;
import com.baishui.core.type.AnnotationMetadata;

/**
 * 扫描的beanDefinition
 */
public class ScannedGenericBeanDefinition extends GenericBeanDefinition implements AnnotatedBeanDefinition {

	private final AnnotationMetadata metadata;

	public ScannedGenericBeanDefinition(AnnotationMetadata metadata) {
		super();
		this.metadata = metadata;
		setBeanClassName(this.metadata.getClassName());
	}

	public final AnnotationMetadata getMetadata() {
		return this.metadata;
	}

}